package com.xwaf.platform.system.auth.serviceimpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.baomidou.mybatisplus.plugins.Page;
import com.xwaf.platform.common.service.service.CrudService;
import com.xwaf.platform.system.api.entity.auth.PermissionField;
import com.xwaf.platform.system.api.service.auth.PermissionFieldService;
import com.xwaf.platform.system.auth.dao.PermissionFieldDao;

/**
 * 
 * <p>
 * 敏感字段权限
 * <p>
 * 
 * @author 李聪 <br>
 * @email xwaf_love@yeah.net <br>
 * @since JDK 1.8<br>
 * @date 2019-5-25 12:36:19 <br>
 * @see 无<br>
 *      Copyright (c) 2019, xwaf_love@yeah.net All Rights Reserved.<br>
 */
@Transactional(readOnly = true)
@Service("permissionFieldService")
public class PermissionFieldServiceImpl extends CrudService<PermissionFieldDao, PermissionField>
		implements PermissionFieldService {

	@Autowired
	private PermissionFieldDao permissionFieldDao;

	@Override
	public Page<PermissionField> selPageList(Page<PermissionField> page, PermissionField permissionField) {
		List<PermissionField> list = permissionFieldDao.selPageList(page, permissionField);
		page.setRecords(list);
		return page;
	}

}
